home *** CD-ROM | disk | FTP | other *** search
- /** VLTPhoneSelect.rexx
- *
- * Select the entries to be dialed this time around
- *
- * By W.G.J. Langeveld, February 1992.
- *
- **/
- /*
- * Add libraries if necessary
- */
- if show("l", "rexxarplib.library") = 0 then do
- check = addlib('rexxsupport.library', 0, -30, 0)
- check = addlib('rexxarplib.library', 0, -30, 0)
- end
- /*
- * Get VLT port and screen names and size
- */
- vltport = address()
- cols = ScreenCols(vltport)
- if cols == -1 then do
- vltscreen = ""
- cols = ScreenCols()
- rows = ScreenRows()
- end
- else do
- vltscreen = vltport
- rows = ScreenRows(vltscreen)
- end
- /*
- * Check if we're set up right
- */
- call pragma('W','NULL')
-
- if ~exists("VLTPhoneBook:") then do
- "@VLTPhoneSetup.rexx"
- exit
- end
- /*
- * Use a multiple select file requester. This works only under 2.0
- */
- test = GetFile(80, 50,"VLTPhoneBook:",, "Select Numbers to Dial", ,
- vltscreen, "MULTISELECT", files)
- if test = "" then exit
-
- if files.0 = 0 then do
- "message (You didn't select any files!); delay 1.5; message)"
- end
- /*
- * Write the entries to the dial file
- */
- if open(output, "VLTPhoneBook:T/dial_file", "w") = 0 then do
- "message (Couldn't write dial file); delay 1.5; message"
- exit
- end
- do i = 1 to files.0
- writeln(output, files.i)
- end
- call close(output)
-
- exit
-